#ifndef DOOR_OPERATIONS_H
#define DOOR_OPERATIONS_H


#include <QDialog>
#include "warn.h"
#include "door_control.h"


namespace Ui {
    class door_operations;
}

class door_operations : public QDialog
{
    Q_OBJECT

public:
    explicit door_operations(QWidget *parent = 0);
    ~door_operations();
    void enter();
    void hideunusedbutton();
    void unlock_back_door(bool lock);
private slots:
    void on_close_frontdoor_btn_clicked();
    void on_open_frontdoor_btn_clicked();
    void on_halt_door_btn_clicked();
    void on_close_backdoor_btn_clicked();
    void on_open_backdoor_btn_clicked();
    void on_return_btn_clicked();
    void timeDone();
    void timeDone2();
    void on_air_back_btn_clicked();
    void on_exhaust_btn_clicked();

    void on_wear_btn_clicked();

private:
Ui::door_operations *ui;
    QTimer *timer;
    QTimer *timer2;
    uint door_actions;
    door_control *door;
    bool first;
    inline void balance_inner_chamber_pressure();
};

#endif // DOOR_OPERATIONS_H
